package modelo;

import java.util.ArrayList;
import java.util.List;

public class Query {

	private int queryNumber;
	private String queryText;
	private int numberRelevants;
	private List<Integer> documentsRelevants;
	
	public int getQueryNumber() {
		return queryNumber;
	}
	
	public void setQueryNumber(int queryNumber) {
		this.queryNumber = queryNumber;
	}
	
	public String getQueryText() {
		return queryText;
	}
	
	public void setQueryText(String queryText) {
		this.queryText = queryText;
	}
	
	public int getNumberRelevants() {
		return numberRelevants;
	}
	
	public void setNumberRelevants(int numberRelevants) {
		this.numberRelevants = numberRelevants;
	}
	
	public List<Integer> getDocumentsRelevants() {
		if (null == documentsRelevants) {
			documentsRelevants = new ArrayList<Integer>();
		}
		return documentsRelevants;
	}
	
	public void setDocumentsRelevants(List<Integer> documentsRelevants) {
		this.documentsRelevants = documentsRelevants;
	}
}
